package edu.chl.tda367.mynotes.ctrl;

import edu.chl.tda367.mynotes.core.MyNotes;

/*
 * A controller class that checks if the user has cut, copied or pasted the
 * text. Sends the information to the model.
 */

public class CutCopyPasteCtrl implements ICtrl {

	public void execute(String s){
		
		if(s.equals("cut")){
			MyNotes.getInstance().cutText();
		} else if(s.equals("copy")){
			MyNotes.getInstance().copyText();
		} else if(s.equals("paste")){
			MyNotes.getInstance().pasteText();
		}
	}

	@Override
	public void execute() {
		
	}
}


